﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="AdvisoryList.aspx.cs" Inherits="GoShopping.Web.SystemManager.AdvisoryList" Title="无标题页" %>
<%@ MasterType VirtualPath="~/ProductManager/ProductManage.Master" %>
<%@ Register assembly="ExtensionGridView" namespace="ExtensionControls" tagprefix="cc1" %>
<%@ Register assembly="GoShopping.Components" namespace="BaseText" tagprefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
<%--            <table class="style1">
                <tr>
                    <td class="style3" style="width: 200px">
                        商品类型:<asp:DropDownList ID="ddlPrdtType" runat="server" AutoPostBack="True" 
                            Width="100px" onselectedindexchanged="ddlPrdtType_SelectedIndexChanged">
                            <asp:ListItem>所有</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>--%>
            <table cellpadding="0" cellspacing="0" 
    style="width: 800px">
                <tr>
                    <td class="style3" colspan="2" valign="top">
                        <cc1:ExtensionGridView ID="extGVAdvisory" runat="server" 
                            AutoGenerateColumns="False" PagerText="当前第{0}页,共{1}页{2}条记录" 
                            RecordCount="-1" Width="495px" 
                            onpageindexchanging="extGVAdvisory_PageIndexChanging" 
                            onrowcommand="extGVAdvisory_RowCommand" AllowPaging="True" 
                            EmptyDataText="没有数据!" PageSize="15" 
                            onrowdatabound="extGVAdvisory_RowDataBound" CellPadding="4" 
                            ForeColor="#333333" GridLines="None">
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#999999" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <table border="0" cellpadding="0" cellspacing="0" class="style1" width="495px">
                                            <tr align="center">
                                                <td style="width:60px">
                                                    <asp:Label ID="lblUserID" runat="server" Text='<%# Eval("UserName") %>'></asp:Label></td>
                                                <td style="width:175px">
                                                    <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("title") %>'></asp:Label></td>
                                                <td style="width:105px">
                                                    <asp:Label ID="lblCreateDate" runat="server" Text='<%# Eval("CreateDate","{0:d}") %>'></asp:Label></td>
                                                <td style="width:40px">
                                                    <asp:Label ID="lblIsCover" runat="server" Text='<%# Eval("IsCover") %>'></asp:Label></td>
                                                <td style="width:115px">
                                        <asp:LinkButton ID="lbtnIsCover" runat="server" CommandName="IsReply" CommandArgument='<%# Eval("ID") %>' 
                                            Text="回复"></asp:LinkButton>
                                        <asp:LinkButton ID="lbtnCover" runat="server"  Text="屏蔽"
                                            CommandArgument='<%# Eval("ID") %>' CommandName="Cover"></asp:LinkButton>
                                        <asp:LinkButton ID="lbtnScore" runat="server"  Text="加分"
                                            CommandArgument='<%# Eval("UserName") %>' CommandName="AddScore"></asp:LinkButton></td>
                                            </tr>
                                            <tr>
                                                <td style="font-weight:bolder">
                                                    内容:</td>
                                                <td colspan="4">
                                                    <asp:Literal ID="lblContent" runat="server" Text='<%# Eval("Content") %>'></asp:Literal></td>
                                            </tr>
                                            <tr>
                                                <td style="font-weight:bolder">
                                                    回复内容:</td>
                                                <td colspan="4" style=" color:Red">
                                                    <asp:Literal ID="ltrReply" runat="server" Text='<% Eval("ReplyContent") %>'></asp:Literal></td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <table border="0" cellpadding="0" cellspacing="0" class="style1" width="495px">
                                            <tr align="center">
                                                <td style="width:55px">
                                                    用户名</td>
                                                <td style="width:175px">
                                                    标题</td>
                                                <td style="width:105px">
                                                    咨询时间</td>
                                                <td style="width:40px">
                                                    屏蔽</td>
                                                <td style="width:120px">
                                                    操作</td>
                                            </tr>
                                        </table>
                                    </HeaderTemplate>
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                            </Columns>
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        </cc1:ExtensionGridView>
                    </td>
                    <td class="style3" colspan="2" valign="top">
                        <asp:DetailsView ID="dtReply" runat="server" AutoGenerateRows="False" 
                            DefaultMode="Edit" Height="300px" onitemcommand="dtReply_ItemCommand" 
                            Width="300px" HeaderText="咨询回复" CellPadding="4" ForeColor="#333333" 
                            GridLines="None">
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <Fields>
                                <asp:TemplateField HeaderText="回复人">
                                    <ItemTemplate>
                                        <asp:Label ID="lblReplyerID" runat="server" Text='<%# Eval("ReplyerName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="回复时间" Visible="False">
                                    <ItemTemplate>
                                        <asp:Label ID="lblReplyDate" runat="server" Text="Label"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="回复内容">
                                    <ItemTemplate>
                                        <cc2:ZLTextBox ID="zlTxtReplyContent" runat="server" TextMode="MultiLine" 
                                            Height="200px" Width="200px" Text='<%# Eval("ReplyContent") %>'></cc2:ZLTextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:Button ID="btnReply" runat="server" Text="回复" CommandName="Reply" CommandArgument='<%# Eval("id") %>' />
                                        <%--<asp:Button ID="btnClear" runat="server" Text="清空" CommandName="Clear" />--%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Fields>
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#999999" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:DetailsView>
                    </td>
                </tr>
                <tr>
                    <td class="style3" style="width: 110px">
                        &nbsp;</td>
                    <td class="style3" style="width: 110px">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
